package com.sky;

import com.alibaba.druid.support.logging.Log;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.core.env.Environment;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author wzplove
 */
@SpringBootApplication
@EnableTransactionManagement //开启注解方式的事务管理
@EnableCaching //开启缓存功能
@Slf4j
public class SkyApplication {
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(SkyApplication.class);
        Environment env = app.run(args).getEnvironment();
        log.info("启动成功！！");
        log.info("Sky-take-out地址: \t http://127.0.0.1:{}", env.getProperty("server.port"));
    }
}
